package com.hongye.house.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 城市表；省市区
 * 
 * @author lins
 * @email 695565697@qq.com
 * @date 2021-10-14 13:32:23
 */
@Data
@TableName("city_home")
public class CityHomeEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 上级id
	 */
	@TableId
	private Integer pid;
	/**
	 * 城市名
	 */
	private String name;
	/**
	 * 下级id
	 */
	private Integer cid;

	@TableField(exist = false)
	private List<CityHomeEntity> ListCity;
}
